//Accepted
#include <vector>
#include <set>
#include <algorithm>
#include <string>
#include <cmath>
#include <queue>
#include <map>
#include <iostream>
#include <list>
#include <deque>
#include <cstdio>
#include <cstring>
#include <cstdlib>
using namespace std;


int main (){
	//freopen("in.txt", "r", stdin);//freopen("out.txt", "w", stdout);
	int n, i, sum, x, y, a[100000];
	
	
	scanf("%d\n", &n);
	for(y=x=i=0;i<n;++i){
		scanf("%d", &a[i]);
		y+=a[i];
	}
	--n;
	for(sum=i=0;i<n;++i){
		x+=a[i];
		y-=a[i];
		if(x==y)++sum;
	}
	
	printf("%d", sum);
	return 0;
}
